package com.zyl.bean;

import java.text.SimpleDateFormat;
import java.util.ArrayList;
import java.util.Calendar;
import java.util.Date;
import java.util.List;

import com.zyl.util.SharedPreferencesUtil;

public class Notes {
 
	public  static String log(){
		String message="";
		Date d = new Date(System.currentTimeMillis());
		SimpleDateFormat sdf = new SimpleDateFormat("HH:mm");
		String time = sdf.format(d);
		int dayOfWeek = 1;
		dayOfWeek = getWeekDay(d);
		switch (dayOfWeek) {

		case 1:
		case 2:
		case 3:
		case 4:

			if (time.equals("7:00")) {
				message = "热水洗脸 跑步 学习wifi 干活细心 稳点 多检查两遍 ";
				time = d.getDay() + "日 " + time;
			}

			message = defaultWeekDay(time,message);
			message = rule13(time,message);
			break;
		case 5:
			if (time.equals("7:00")) {
				message = "热水洗脸 跑步 学习wifi 干活细心 稳点 多检查两遍 ";
				time = d.getDay() + "日 " + time;
			}

			 
			message = defaultWeekDay(time,message);
			message = rule13(time,message);
			break;
		case 6:

			if (time.equals("08:20")) {
				message = "热水洗脸 学习wifi";
				time = d.getDay() + "日 " + time;
			}

			if (time.equals("14:00")) {
				message = "洗衣服";

			}
			if (time.equals("21:00")) {
				message = "洗澡";

			}
			message = defaultWeekEnd(time,message);
			message = rule13(time,message);
			break;
		case 7:

			if (time.equals("08:20")) {
				message = "热水洗脸 学习wifi";
				time = d.getDay() + "日 " + time;
			}
			if (time.equals("21:30")) {
				message = "日志 有没有想总结的";

			}
			message = defaultWeekEnd(time,message);
			message = rule13(time,message);
			break;

		default:
			break;
		}
		return message;

	}
 
	 
 

	public static int dayForWeek(Date d) {
		Calendar c = Calendar.getInstance();
		c.setTime(d);
		return c.get(Calendar.DAY_OF_WEEK);
	}

	public static int getWeekDay(Date d) {

		Calendar c = Calendar.getInstance();
		c.setTime(d);
		int dayForWeek = 0;
		if (c.get(Calendar.DAY_OF_WEEK) == 1) {
			dayForWeek = 7;
		} else {
			dayForWeek = c.get(Calendar.DAY_OF_WEEK) - 1;
		}
		return dayForWeek;
	}






private static String defaultWeekDay(String time,String message) {
	 
 
	if (time.equals("07:10")) {
		message = "MorMem 胡雪岩";

	}
	
	if (time.equals("18:10")) {
		message = "EveMem!!! 胡雪岩";

	}
	if (time.equals("21:00")) {
		message = "wifi car";

	}
	if (time.equals("21:30")) {
		message = "日志 要是有错误记下来,或是从别人身上学到的";

	}
	if (time.equals("22:00")) {
		message = "睡觉";

	}
	return message;
}

private static String rule13(String time,String message) {
 
 

	if (time.equals("19:12")) {
		message = "11镇静 Tranquility speak slow";
		
	}
	if (time.equals("19:13")) {
		message = "12  Chastity no see think touch";
		
	}
	return message;
}

private static String defaultWeekEnd(String time,String message) {

 
	if (time.equals("07:30")) {
		message = "起床";

	}
 
	if (time.equals("9:05")) {
		message = "wifi 小车";

	}
	if (time.equals("22:00")) {
		message = "睡觉";

	}
	return message;

}}